#include "bits/stdc++.h"
using namespace std;
bool is(int x) {
    if (x < 2)
        return false;
    for(int i = 2;i <= sqrt(x);i ++) {
        if (x % i == 0)
            return false;
    }
    return true;
}
int main() {
    string a;
    cin>>a;
    int maxx = 0;
    int minn = 0x3f3f3f3f;
    map<int,int > faq;
    for(char i : a)
        faq[(int) i] ++;
    for(char i = 'a';i <= 'z';i ++) {
        if (faq[(int) i] >= 1) {
            maxx = max(maxx,faq[(int) i]);
            minn = min(minn,faq[(int) i]);
        }
    }
    if(is(maxx - minn)) {
        cout<<"Lucky Word"<<endl<<maxx - minn;
    } else {
        cout<<"No Answer"<<endl<<0;
    }
    return 0;
}